snapcraft should run apt-get update
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
When run from a process container, `snapcraft` could fail, because `apt-get` caches are not up to date.
https://cirrus-ci.com/task/4766182000820224
The solution is to update the cache if it is too old. There are feature requests for that in `apt`.
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1429285
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1709603
Some solutions were proposed on StackExchange.
https://unix.stackexchange.com/questions/271000/update-apt-get-cache-only-if-its-older-than-certain-time?rq=1
Evaluation history
No evaluation history available.